package com.wondersgroup.simple.prodive.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.wondersgroup.simple.prodive.dao.ProviceDao;
import com.wondersgroup.simple.prodive.entity.User;

@RestController
public class ProviceController {

	@Autowired
	private ProviceDao proviceDao;
	
	@GetMapping("/provice/{id}")
	public User findById(@PathVariable Long id){
		return proviceDao.findOne(id);
	}
	
	
}
